package com.water.app.Impl.account;


import com.water.app.interfaces.account.LoginService;
import com.water.app.User;
import com.water.app.mapper.goodsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.water.app.mapper.userMapper;

@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private userMapper userMapper;
    @Autowired
    private goodsMapper goodsMapper;
    @Override
    public User SelectUser(String account, String password) {
        return userMapper.selectUserByUsernameAndPassword(account, password);
    }

    @Override
    public User selectUserById(Integer userId) {
        return userMapper.selectUserByUserId(userId);
    }
}
